<%--
  Created by IntelliJ IDEA.
  User: xywen
  Date: 2017/5/29
  Time: 21:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="bjui-pageContent">
    <form>
        <label class="row-label">Excel文件上传</label>
        <div class="row-input">
            <%-- <input type="file" data-name="custom.pic" data-toggle="webuploader" data-options="
                        {
                            pick: {label: '点击选择JSON文件'},
                            server: '<c:url value="/input/doMemberInfo"/>',
                            fileNumLimit: 1,
                            formData: {dir:'custompic'},
                            required: true,
                            uploaded: '',
                            basePath: '',
                            accept: {
                                title: '数据导入',
                                extensions: 'json',
                                mimeTypes: '.json'
                            }
                        }"
            > --%>
            <div id="fileUpload" data-toggle="upload">
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		$("#fileUpload").uploadify({
			swf:'<c:url value="/plugins/uploadify/scripts/uploadify.swf"/>',
			uploader:'<c:url value="/input/doMemberInfo"/>',
			width:120,
			height:30,
			fileTypeExts:'*.json',
			fileObjName:'fileObject'
		});
	});
</script>